package com.turtle.security.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 系统操作日志表
 *
 * @author turtle
 * date: 2020-06-05
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "系统操作日志表", description = "系统操作日志表")
public class SysOperateLog implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志主键")
    @TableId(value = "operate_id", type = IdType.AUTO)
    private Long operateId;

    @ApiModelProperty(value = "模块标题")
    private String title;

    @ApiModelProperty(value = "操作描述")
    private String operateDescription;

    @ApiModelProperty(value = "操作类型（其它 新增 修改 列表 删除）")
    private String operateType;

    @ApiModelProperty(value = "方法名称")
    private String method;

    @ApiModelProperty(value = "请求方式")
    private String requestMethod;

    @ApiModelProperty(value = "操作客户端(后台管理系统 app)")
    private String operateClient;

    @ApiModelProperty(value = "操作人员")
    private String operateName;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "请求URL")
    private String operateUrl;

    @ApiModelProperty(value = "主机地址")
    private String operateIp;

    @ApiModelProperty(value = "操作地点")
    private String operateLocation;

    @ApiModelProperty(value = "请求参数")
    private String operateParam;

    @ApiModelProperty(value = "返回参数")
    private String jsonResult;

    @ApiModelProperty(value = "操作状态（0正常 1异常）")
    private Integer status;

    @ApiModelProperty(value = "错误消息")
    private String errorMsg;

    @ApiModelProperty(value = "操作时间")
    private LocalDateTime operateTime;

    @Tolerate
    public SysOperateLog() {
    }


}
